
module DrunkenMaster  
  class RackAdapter    
    def initialize(app)
      @app = app
    end

    def call(env)
      response = HttpResponse.new
      @app.execute({
          :rack_env => env
        }, response)
      [response.code, response.headers, response.body]
    rescue
      puts $!
      raise $!
    end
  end
end  